package com.common;

public enum ReturnCode {
    SUCCESS("200", "SUCCESS"),
    PARAM_ERROR("201", "必填参数为空"),
    LOGIN_ERROR("202", "用户名或密码错误"),
    ROLE_NAME_REPEAT("203", "角色名重复"),
    MENU_NAME_REPEAT("205", "菜单名重复"),
    DATA_NOT_EXISTS("204", "数据不存在"),
    INVIDIT("503", "fail");

    private String code;
    private String msg;

    private ReturnCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
